package com.wisdomparking.bean;

import java.io.Serializable;
import java.util.Date;

public class Rawdata implements Serializable {
    private Integer id;

    private String identification;

    private String realTimeData;

    private Boolean putInStorageMark;

    private Date updateTime;

    private String putInStorageMode;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getIdentification() {
        return identification;
    }

    public void setIdentification(String identification) {
        this.identification = identification;
    }

    public String getRealTimeData() {
        return realTimeData;
    }

    public void setRealTimeData(String realTimeData) {
        this.realTimeData = realTimeData;
    }

    public Boolean getPutInStorageMark() {
        return putInStorageMark;
    }

    public void setPutInStorageMark(Boolean putInStorageMark) {
        this.putInStorageMark = putInStorageMark;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getPutInStorageMode() {
        return putInStorageMode;
    }

    public void setPutInStorageMode(String putInStorageMode) {
        this.putInStorageMode = putInStorageMode;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Rawdata other = (Rawdata) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getIdentification() == null ? other.getIdentification() == null : this.getIdentification().equals(other.getIdentification()))
            && (this.getRealTimeData() == null ? other.getRealTimeData() == null : this.getRealTimeData().equals(other.getRealTimeData()))
            && (this.getPutInStorageMark() == null ? other.getPutInStorageMark() == null : this.getPutInStorageMark().equals(other.getPutInStorageMark()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getPutInStorageMode() == null ? other.getPutInStorageMode() == null : this.getPutInStorageMode().equals(other.getPutInStorageMode()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getIdentification() == null) ? 0 : getIdentification().hashCode());
        result = prime * result + ((getRealTimeData() == null) ? 0 : getRealTimeData().hashCode());
        result = prime * result + ((getPutInStorageMark() == null) ? 0 : getPutInStorageMark().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getPutInStorageMode() == null) ? 0 : getPutInStorageMode().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", identification=").append(identification);
        sb.append(", realTimeData=").append(realTimeData);
        sb.append(", putInStorageMark=").append(putInStorageMark);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", putInStorageMode=").append(putInStorageMode);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}